<?php

namespace App\Models\Stock;

use App\Models\BaseModel;
use App\Models\Basic\Product;
use App\Models\Basic\Storage;

class ProductStockLog extends BaseModel
{
    //
    protected $fillable = [
        'product_id',
        'storage_id',
        'mode',
        'type',
        'original_num',
        'move_num',
        'current_num',
        'move_cost_price',
        'move_total_cost_price',
        'original_cost_price',
        'current_cost_price',
        'current_total_cost_price'
    ];

    protected $hidden = [
    ];

    public function product()
    {
        return $this->belongsTo(Product::class);
    }

    public function storage()
    {
        return $this->belongsTo(Storage::class);
    }

}
